<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Usuarios por Sede</title>
  </head>
  <body>
  <form name="frmUsuSede" action="<%=request.getContextPath()+"/Sedes/EscogerUsuario.do"%>" method="get">
     <%   
     String strnomSede = request.getParameter("Nombre");
     if(strnomSede == null)
       strnomSede = (String)request.getAttribute("sede");
     %> 
  
    <P></P>
    <P class="titulosenblanco">USUARIOS ASIGNADOS</P>
    <table cellspacing="2" cellpadding="1" border="0" width="60%" align="center">
      <tr>
        <td class="celdatabla" >
          <DIV align="right">
            <STRONG>Sede</STRONG> 
          </DIV>
        </td>
        <td>
          <DIV align="center">
            <input type="text" name="sede" class="form" value="<%=strnomSede%>" maxlength="50" size="50"/>
          </DIV>
        </td>
      </tr>
    </table>
    
    <table  cellspacing="3" cellpadding="2" border="0" width="90%" align="center">
  <tr>
  <td>
  <logic:notPresent scope="request" name="Usuarios">
        <DIV align="center"><%=request.getAttribute("msg")%></DIV>
    </logic:notPresent>
    <logic:present scope="request" name="Usuarios"> 
  <display:table name="requestScope.Usuarios" class="bordesTable"  id="usu" cellpadding="3" cellspacing="1"  style="width:100%">
     <display:column headerClass="headerTable" title="Usuario" class="Numero" sortable="false">
        <bean:write name="usu" property="nombreUsuario"/> 
     </display:column> 
     <display:column headerClass="headerTable" title="NOMBRE" property="descripcionUsuario" class="Numero" sortable="false"/>
     <display:column headerClass="headerTable" title="GRUPO USUARIO" class="Numero" sortable="false">
        <bean:write name="usu" property="descripcionGrupoUsuario"/> 
     </display:column> 
     <display:column headerClass="headerTable" title="Programa" class="Numero" sortable="false">
        <bean:write name="usu" property="nombrePrograma"/> 
     </display:column>
     <display:column headerClass="headerTable" title="Beneficio" class="Numero" sortable="false">
        <bean:write name="usu" property="nombreSubprograma"/> 
     </display:column>
  </display:table> 
  </logic:present>
  </td>
  </tr>
  </table>
  <P></P>
  <table cellspacing="1" cellpadding="2" border="0" width="100%">
    <logic:present scope="request" name="option">
      <tr>
        <td width="50%">
          <DIV align="center">
            <a href="javascript:window.history.back()">
              <img src="<%=request.getContextPath() + "/images/BACK1-1.gif"%>" border="0"/>
            </a>
          </DIV>
        </td>
        <td align="left" width="50%">
          <input type="submit" value="Asignar Usuario"/>
        </td>
      </tr>
    </logic:present>
    <logic:notPresent scope="request" name="option">
      <tr>
        <td width="100%">
          <DIV align="center">
            <a href="javascript:window.history.back()">
              <img src="<%=request.getContextPath() + "/images/BACK1-1.gif"%>" border="0"/>
            </a>
          </DIV>
        </td>
      </tr>
    </logic:notPresent>
  </table>
  <P></P>
  </form>
  </body>
</html>
